home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / program / szadb1_4.zoo / src / lang.h < prev    next >
C/C++ Source or Header  |  1991-07-07  |  5KB  |  207 lines

  1. /* Copyright (c) 1990 by Sozobon, Limited.  Authors: Johann Ruegg, Don Dugger
  2.  *
  3.  * Permission is granted to anyone to use this software for any purpose
  4.  * on any computer system, and to redistribute it freely, with the
  5.  * following restrictions:
  6.  * 1) No charge may be made other than reasonable charges for reproduction.
  7.  * 2) Modified versions must be clearly marked as such.
  8.  * 3) The authors are not responsible for any harmful consequences
  9.  *    of using this software, even if they result from defects in it.
  10.  *
  11.  *    lang.h    - english version
  12.  *    change only this file to make other language versions
  13.  */
  14. /*
  15.  * Modifications:
  16.  *   - updated to reflect new, expanded syntax
  17.  *
  18.  *     Anthony Howe, Michal Jaegermann
  19.  */
  20. #ifdef IN_ADB
  21.  
  22. #define M1    "%s:cannot open\n"
  23. #define M2    "%s:bad format\n"
  24. #define M3    "%s:bad pexec\n"
  25. #define M4    "Szadb version 1.4mj (english)"
  26. #define M5    "(hit any key)"
  27. #define M6    "unknown command\n"
  28. #define M7    "can't allocate %i bytes for input info node\n"
  29. #define M_USE   "Usage: adb [-nb] [-nc] [-k kdefs] [-o(s|m)] binary [args]\n"
  30.  
  31. #ifndef FORGET
  32. char *errwhy[] = {
  33.     "access out of bounds\n",
  34.     "unbalanced parenthesis\n",
  35.     "unknown command\n",
  36.     "bad command\n",
  37.     "unknown symbol\n",
  38.     "bad register name\n"
  39. };
  40. #endif
  41. #endif
  42.  
  43. #ifdef IN_ADB1
  44.  
  45. #define M1    "can't allocate %i bytes for symbol\n"
  46. #define M2    "Retry? (y/n): "
  47.  
  48. #endif
  49.  
  50. #ifdef IN_FKEY
  51.  
  52. #define M1    "cannot open %s\n"
  53. #define M2    "no memory for a table of function keys\n"
  54. #define M3    "definition of f%i too long - aborted\n"
  55. #define M4    "read error: file %s\n"
  56. #define M5    "out of memory while defining F%i\n"
  57. #define M6    "kdefs: out of memory\n"
  58.     
  59. #endif
  60.  
  61. #ifdef IN_HELP
  62.  
  63. /*
  64.  * The longest line of help can be no more than 40 characters.
  65.  * These tables are shown from the last one to the first.
  66.  */
  67.  
  68. char *help1[] = {
  69. "        SYNTAX SUMMARY",
  70. "{expr},{count} COMMAND {extras}",
  71. "",
  72. "      VALUES",
  73. "   NAME  address of symbol",
  74. " NUMBER  number in default base",
  75. "0x,0t,0o prefix for hex,decimal,octal",
  76. "  <REG   value of register",
  77. "<l,<t,<b,<d value of variable",
  78. "    .    current location (DOT)",
  79. "    &    last typed {expr}",
  80. "",
  81. "     BINARY OPERATORS",
  82. " +,-,*,% add,sub,mul,div",
  83. "   &,|   bitwise and,or",
  84. "",
  85. "     UNARY OPERATORS",
  86. "   -,^   minus,complement",
  87. "    *    fetch 4 bytes from address",
  88. "    @    fetch 2 bytes from address",
  89.     0
  90. };
  91.  
  92. char *help2[] = {
  93. "    ?/  COMMANDS               EXTRAS",
  94. " / or ?  print memory         {format}",
  95. "   =     print value          {format}",
  96. "   /w,/W write memory         {values}",
  97. "",
  98. "      FORMATS",
  99. "  o,d,x  2-bytes in octal,decimal,hex",
  100. "  O,D,X  4-bytes in octal,decimal,hex",
  101. "    i    disassembled instruction",
  102. "    b    1-byte in octal",
  103. "    c    1-byte character",
  104. "   a,p   address relative to symbols",
  105. "   s,S   string",
  106. "",
  107. "      SPECIAL FORMAT FIELDS",
  108. "  <n>t   tab to next <n>-wide tab stop",
  109. "   n,r   newline,blank",
  110. "   +,-   add +1 or -1 to DOT",
  111. "    ^    backup DOT by last format",
  112. "  STRING echo string to output",
  113.     0
  114. };
  115.  
  116. char *help3[] = {
  117. "     :  COMMANDS               EXTRAS",
  118. "  :c,:C  continue             {params}",
  119. "  :s,:S  step               {requests}",
  120. "  :n,:N  next               {requests}",
  121. "  :j,:J  jump               {requests}",
  122. "  :f,:F  end of function    {requests}",
  123. "   :b    set breakpoint     {requests}",
  124. "   :d    del breakpoint",
  125. "",
  126. "::b,::s  switch on/off stored req {+-}",
  127. "   similar for other stepping commands",
  128. "::f_,::n_ switch request \"down\"",
  129. "",
  130. "     >  COMMAND                EXTRAS",
  131. "    >    change register value   {reg}",
  132. "",
  133. "     <  COMMAND                EXTRAS",
  134. "    <    read value of register  {reg}",
  135. "         or of a spec variable  {ltbd}",
  136.     0
  137. };
  138.  
  139. char *help4[] = {
  140. "      $  COMMANDS",
  141. "   $c,$C stack backtrace",
  142. "   $r    show registers",
  143. "   $p    show basepage",
  144. "$o,$x,$d set number base",
  145. "   $q    quit",
  146. "   $b    show breakpoints",
  147. "   $s    set symbol offset",
  148. "   $e    show external symbols",
  149. "   $k<n> execute key F<n>",
  150. "   $k    show function key defs",
  151. " $>file  record output in file",
  152. "   $>    output only on screen",
  153.     0
  154. };
  155.  
  156. #define M1    "   q - quit   <space> - more"
  157.  
  158. #endif
  159.  
  160. #ifdef    IN_PCS
  161.  
  162. #define M1    "(? at %I)"
  163.  
  164. #define M2    "base page at %I"
  165. #define M3    "\nlow tpa "
  166. #define M4    "  hi tpa  "
  167. #define M5    "\ntext at "
  168. #define M6    "  size    "
  169. #define M7    "\ndata at "
  170. #define M8    "\nbss at  "
  171. #define M9    "\nenv ptr "
  172. #define M10    "  parent  "
  173. #define UNKNOWN_CMD             "unknown command\n"
  174.  
  175. #define M11    "can't load %s\n"
  176. #endif /* IN_PCS */
  177.  
  178. #ifdef IN_STEPPING
  179. #define PROCESS_EXIT    "process exited\n"
  180. #define BREAK_AT        "break at %A\n"
  181. #define TOO_MANY_BPT    "too many breakpoints\n"
  182. #define NO_BPT          "no breakpoint found\n"
  183. #define NO_RETURN       "no return address found\n"
  184. #endif /* IN_STEPPING */
  185.  
  186. #ifdef IN_TRACE
  187.  
  188. char *tnm[] = {
  189.     "0", "1", "bus error", "address error",
  190.     "illegal instr", "zero divide",
  191.     "CHK", "TRAPV",
  192.     "priv violation", "trace",
  193.     "process exit"
  194. };
  195.  
  196. char *fcnm[] = {
  197.     "?0?", "user data", "user prog", "?3?",
  198.     "?4?", "supv data", "supv prog", "intr ack"
  199. };
  200.  
  201. #define M1    "(not instr) "
  202. #define M2    "addr %I instr %i\n"
  203. #define M3    "internal trap: "
  204. #endif
  205.  
  206. #define MW    "error on write to %s"        /* in file window.c */
  207.